package pagerank;

public class FLURLPageRankStruct implements Comparable<FLURLPageRankStruct>{
	public String URL;
	public Double PageRankValue;
	public FLURLPageRankStruct(String url, double pa) {
		URL = url;
		PageRankValue = pa;
	}
	public String toString()
	{
	//	return "URL:" + URL + "|" + "PageRankValue: " + PageRankValue;
		return URL + "," + PageRankValue;
	}
	public int compareTo(FLURLPageRankStruct o) {
		if (this.PageRankValue < o.PageRankValue)
			return -1;
		else if (this.PageRankValue > o.PageRankValue)
			return 1;
		return 0;
	}
}
